Skip to content

Whitelist the modmail category for displaying verbose infraction info from the user command#1126

Merged
MarkKoz merged 6 commits into
masterfrom
feat/info/1125/user-cmd-whitelist-modmail
Sep 22, 2020
Merged

Whitelist the modmail category for displaying verbose infraction info from the user command#1126
MarkKoz merged 6 commits into
masterfrom
feat/info/1125/user-cmd-whitelist-modmail

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented Aug 25, 2020

Fixes #1125

I also did a small refactor that switches out the command's redirect code with a in_whitelist_check.

`in_whitelist_check` is a convenient utility that does the same thing as
the previous code.
@MarkKoz MarkKoz added t: feature New feature or request p: 2 - normal Normal Priority a: information Related to information commands: (doc, help, information, reddit, site, tags) labels Aug 25, 2020
@MarkKoz MarkKoz requested a review from a team as a code owner August 25, 2020 18:07
@MarkKoz MarkKoz requested review from Den4200 and lemonsaurus and removed request for a team August 25, 2020 18:07
@ghost ghost added the needs 2 approvals label Aug 25, 2020
They should only be shown in mod channels, not all staff channels.

Fix #1127
@MarkKoz
Copy link
Copy Markdown
Contributor Author

MarkKoz commented Aug 27, 2020

The staff channels constant is no longer used anywhere. Should it be deleted?

@MarkKoz MarkKoz added t: bug Something isn't working a: moderation Related to community moderation functionality: (moderation, defcon, verification) labels Aug 27, 2020
Mocking the bot commands channel constant no longer worked after
switching to `in_whitelist_check`.
@lemonsaurus
Copy link
Copy Markdown
Contributor

The staff channels constant is no longer used anywhere. Should it be deleted?

I don't see why not. No point in keeping stuff that we're not using.

No longer being used anywhere.
Copy link
Copy Markdown
Contributor

@kosayoda kosayoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works good.

@ghost ghost removed the needs 1 approval label Sep 22, 2020
@MarkKoz MarkKoz merged commit 628a3f7 into master Sep 22, 2020
@MarkKoz MarkKoz deleted the feat/info/1125/user-cmd-whitelist-modmail branch September 22, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: information Related to information commands: (doc, help, information, reddit, site, tags) a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 2 - normal Normal Priority t: bug Something isn't working t: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Whitelist modmail threads as mod channels

4 participants